
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class TitleTitleCfg : public ManualSingleton <TitleTitleCfg>
{
	friend ManualSingleton <TitleTitleCfg>;
public:
	TitleTitleCfg();
	~TitleTitleCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const TitleTitleCfgInfo *GetTitleTitleCfgInfo(int32_t id);
	const TitleTitleCfgMap *GetTitleTitleCfgMap() { return &m_TitleTitleCfgMap; }
private:
	TitleTitleCfgMap m_TitleTitleCfgMap;
};

#define  g_MakeTitleTitleCfgTable() (TitleTitleCfg::Instance())
#define  g_GetTitleTitleCfgTable() (TitleTitleCfg::GetInstance())
#define  g_DelTitleTitleCfgTable() (TitleTitleCfg::Destroy())